<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>用户中心</title>
    <meta name="keywords" content="课程学习问答系统">
    <meta name="description" content="课程学习问答系统">

    <script src="/static/js/jquery/jquery-2.1.4.min.js" type="text/javascript"></script>
    <script src="/static/layui/layui.js" type="text/javascript"></script>
    <script src="/static/js/index/index.js" type="text/javascript"></script>
    <script src="/static/js/index/freezeheader.js" type="text/javascript"></script>
    <script src="/static/layui/lay/modules/layer.js" type="text/javascript"></script>
    <script src="/static/js/index/sliders.js" type="text/javascript"></script>
    <script src="/static/js/index/html5.js" type="text/javascript"></script>
    <script src="/static/js/index/set.js" type="text/javascript"></script>
    <link rel="stylesheet" href="/static/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="/static/layui/css/modules/layer/default/layer.css"/>
    <link rel="stylesheet" href="/static/css/global.css"/>
</head>
<body>
<div class="layui-container container" style="padding-top:70px;">
    <div class="main fly-user-main layui-clear">
        <div class="fly-panel fly-panel-user">
            <div class="layui-tab layui-tab-brief" lay-filter="user">
                <div class="layui-tab-content" style="padding: 20px 0;">
                    <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">新增教师</strong>
                    <div class="layui-form layui-form-pane layui-tab-item layui-show">
                        <form class="layui-form" method="post" action="/admin/teacher/insert">
                            <div class="layui-form-item">
                                <label for="L_username" class="layui-form-label">教师职工号</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="userNumber" lay-verify="required" autocomplete="off"
                                           class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label for="L_username" class="layui-form-label">教师姓名</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="username" lay-verify="required" autocomplete="off"
                                           class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">密码：</label>
                                <div class="layui-input-inline">
                                    <input type="password" name="password" placeholder="请输入密码" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">确认密码：</label>
                                <div class="layui-input-inline">
                                    <input type="password" name="rePassword" placeholder="请再次输入密码" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label for="L_username" class="layui-form-label">性别</label>
                                <div class="layui-input-inline">
                                    <div class="layui-inline">
                                        <div class="layui-input-inline">
                                            <input type="radio" name="sex" value="1" checked title="男">
                                            <input type="radio" name="sex" value="0" title="女">

                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">邮箱</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="email" lay-verify="required|email" autocomplete="off"
                                               class="layui-input" >
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">教师简介</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="teacherBrief" lay-verify="required" autocomplete="off"
                                           class="layui-input" placeholder="请输入教师简介">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label for="L_username" class="layui-form-label">教师职称</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="teacherPost" lay-verify="required" autocomplete="off"
                                           class="layui-input"  placeholder="请输入教师职称">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label for="L_username" class="layui-form-label">教师所教科目</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="teacherSubject" lay-verify="required" autocomplete="off"
                                           class="layui-input" placeholder="请输入教师所教科目">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label for="L_username" class="layui-form-label">教师学历</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="teacherDegree" lay-verify="required" autocomplete="off"
                                           class="layui-input" placeholder="教师学历">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <button class="layui-btn" lay-filter="*" lay-submit>插入
                                </button>
                            </div>
                        </form>
                        <span>${msgerror}</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<script type="text/javascript">
    function test() {
        alert("添加成功！");
        parent.location.reload();
    }
</script>
</body>
</html>




